package net.kosev.su.tetris;

import net.kosev.su.tetris.TetrisGame.KeyHandler;

interface Command {
	public void execute();
}

class KeyCommand implements Command {
	
	private KeyHandler handler;
	private int key;
	
	public KeyCommand(KeyHandler h, int k) {
		handler = h;
		key = k;
	}
	
	public void execute() {
		handler.handleKey(key);
	}
	
}
